package cn.xk.ymcc.code;

public enum  GlobalErrorCode {

    SYSTEM_EXCEPTION("-1000","系统错误"),
    USER_EXCEPTION("-2000","用户服务错误"),
    PARAM_EXCEPTION("-2001","参数错误");

    String code;
    String message;

    GlobalErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    GlobalErrorCode(String message) {
        this.message = message;
    }

    GlobalErrorCode() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
